<?

include("include/iMVC_Front.php");
/**ip检查*/
$ipChecker=new iMVC_IP_Check();
$ipChecker->ipCheck();

$f=new iMVC_Front();
$f->setDefalutDir('controller');
//$f->addRule("google",null,12,null,new iMVC_Dispatcher_Redirect('http://www.google.com'));
$f->addRule("admin/{act}",array('ctr'=>'admin'),4,'admin/controller');
$f->addRule("{ctr}",null,2,null,new iMVC_Dispatcher_Mlangs());
$f->addRule("{ctr}/{act}",null,3,null,new iMVC_Dispatcher_Mlangs());
//$f->addRule("{ctr}/{act}",null,4,null,new iMVC_Dispatcher_Mlangs());
$f->disPath();

?>
